<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class BaseModel extends Model {

    use SoftDeletes;

    protected $dateFormat = 'U';
    protected $guarded = ["created_at", "updated_at", "id"];
    protected $hidden = ['deleted_at'];
    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp'
    ];
}
